this.canLaunchSearch = true;
},
- activateResult: function(id) {
- this.proxy.ActivateResultRemote(id, [], 0);
+ activateResult: function(id, terms) {
+ this.proxy.ActivateResultRemote(id, terms, global.get_current_time());
},
launchSearch: function(terms) {
_init: function(provider, metaInfo, terms) {
this.provider = provider;
this.metaInfo = metaInfo;
+ this.terms = terms;
this.actor = new St.Button({ style_class: 'search-result',
reactive: true,
x_align: St.Align.START,
},
activate: function() {
- this.provider.activateResult(this.metaInfo.id);
+ this.provider.activateResult(this.metaInfo.id, this.terms);
Main.overview.toggle();
},
if (this.provider.dragActivateResult)
this.provider.dragActivateResult(this.metaInfo.id, params);
else
- this.provider.activateResult(this.metaInfo.id);
+ this.provider.activateResult(this.metaInfo.id, this.terms);
}
});